package com.imut.hcdp.service.impl;

import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.imut.hcdp.mapper.HcdpStationMapper;
import com.imut.hcdp.domain.HcdpStation;
import com.imut.hcdp.service.IHcdpStationService;


@Service
public class HcdpStationServiceImpl implements IHcdpStationService
{
    @Autowired
    private HcdpStationMapper hcdpStationMapper;


    @Override
    public HcdpStation selectHcdpStationById(Long id)
    {
        return hcdpStationMapper.selectHcdpStationById(id);
    }


    @Override
    public List<HcdpStation> selectHcdpStationList(HcdpStation hcdpStation)
    {
        return hcdpStationMapper.selectHcdpStationList(hcdpStation);
    }


    @Override
    public int insertHcdpStation(HcdpStation hcdpStation)
    {
        hcdpStation.setCrttime(new Date());
        return hcdpStationMapper.insertHcdpStation(hcdpStation);
    }


    @Override
    public int updateHcdpStation(HcdpStation hcdpStation)
    {
        return hcdpStationMapper.updateHcdpStation(hcdpStation);
    }


    @Override
    public int deleteHcdpStationByIds(Long[] ids)
    {
        return hcdpStationMapper.deleteHcdpStationByIds(ids);
    }


    @Override
    public int deleteHcdpStationById(Long id)
    {
        return hcdpStationMapper.deleteHcdpStationById(id);
    }
}
